PATH  Mac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Icon Services and Utilities
>
Obtaining and Using Icons With Icon Services

   

IconFamilyToIconSuite

Provides iconSuite data for a given icon family.

pascal OSErr IconFamilyToIconSuite(
                     IconFamilyHandle iconFamily,
                     IconSelectorValuewhichIcons,
                     IconSuiteRef*iconSuite);

iconFamily
A handle to an iconFamily data structure to use as a source for icon data. For more information on the IconFamily data structure, see Figure 2-1 .

whichIcons
A value of type IconSelectorValue specifying the depths and sizes of icons to extract from the IconFamily data structure. For a description of the possible values, see Icon Selector Constants .

iconSuite
A pointer to an IconSuite data structure. On return, this structure contains icon data as specified in the iconFamily and whichIcons parameters. Icon Services returns NULL if no appropriate icon data is found.

function result
A result code. See Icon Services Result Codes for a description of possible return values.

© 1999 Apple Computer, Inc. – (Last Updated 03 Dec 99)